/*!
 * \file inlinePoint.h
 * \brief Point class.
 * \warning Do not include directly.
 * \author Nus
 * \date 2008/03/10, 00:34
 */

//! \brief Assign operator.
nuPoint& nuPoint::operator = (const nuPoint& point)
{
  X = point.X;
  Y = point.Y;
  return *this;
}

//! \brief Add operator.
nuPoint nuPoint::operator + (const nuPoint& point) const
{
  nuPoint temp;
  temp.X = X + point.X;
  temp.Y = Y + point.Y;
  return temp;
}

//! \brief Subtract operator.
nuPoint nuPoint::operator - (const nuPoint& point) const
{
  nuPoint temp;
  temp.X = X - point.X;
  temp.Y = Y - point.Y;
  return temp;
}

//! \brief Subtract operator.
nuPoint nuPoint::operator * (f32 val) const
{
  nuPoint temp;
  temp.X = X * val;
  temp.Y = Y * val;
  return temp;
}

//! \brief Subtract operator.
nuPoint nuPoint::operator / (f32 val) const
{
  nuPoint temp;
  f32 vdiv = 1.0f / val;
  temp.X = X * vdiv;
  temp.Y = Y * vdiv;
  return temp;
}
